import Layout from '@/layout/Layout.vue'

// 基础页面
import Dashboard from '@/views/Dashboard.vue'

// 站点管理
import SiteList from '@/views/site-management/SiteList.vue'
import SiteSettings from '@/views/site-management/SiteSettings.vue'
import DomainManagement from '@/views/site-management/DomainManagement.vue'

// 页面设计
import PageList from '@/views/page-design/PageList.vue'
import VisualEditor from '@/views/page-design/VisualEditor.vue'
import TemplateLibrary from '@/views/page-design/TemplateLibrary.vue'

// 内容管理
import CategoryManagement from '@/views/content-management/CategoryManagement.vue'
import ArticleManagement from '@/views/content-management/ArticleManagement.vue'
import ProductManagement from '@/views/content-management/ProductManagement.vue'
import FormData from '@/views/content-management/FormData.vue'
import MediaLibrary from '@/views/content-management/MediaLibrary.vue'
// 案例管理
import CaseList from '@/views/content-management/CaseList.vue'

// AI辅助功能
import AiArticle from '@/views/ai-tools/AiArticle.vue'
import AiCategory from '@/views/ai-tools/AiCategory.vue'
import AiPage from '@/views/ai-tools/AiPage.vue'
import AiImage from '@/views/ai-tools/AiImage.vue'
import AiFullSite from '@/views/ai-tools/AiFullSite.vue'

// SEO管理
import BasicSeo from '@/views/seo-management/BasicSeo.vue'
import AdvancedSeo from '@/views/seo-management/AdvancedSeo.vue'
import KeywordMonitor from '@/views/seo-management/KeywordMonitor.vue'
import SeoAnalysis from '@/views/seo-management/SeoAnalysis.vue'
import DataStatistics from '@/views/seo-management/DataStatistics.vue'

// 用户与权限
import UserManagement from '@/views/user-permission/UserManagement.vue'
import RoleManagement from '@/views/user-permission/RoleManagement.vue'
import PermissionSettings from '@/views/user-permission/PermissionSettings.vue'
import AdminDashboard from '@/views/AdminDashboard.vue'

// 系统设置
import SystemSettings from '@/views/SystemSettings.vue'


const routes = [
  {
    path: '/',
    component: Layout,
    children: [
      { path: '', name: 'Dashboard', component: Dashboard },
      
      // 站点管理
      { path: '/site-list', name: 'SiteList', component: SiteList },
      { path: '/site-settings', name: 'SiteSettings', component: SiteSettings },
      { path: '/domain-management', name: 'DomainManagement', component: DomainManagement },
      
      // 页面设计
      { path: '/page-list', name: 'PageList', component: PageList },
      { path: '/visual-editor', name: 'VisualEditor', component: VisualEditor },
      { path: '/template-library', name: 'TemplateLibrary', component: TemplateLibrary },
      
      // 内容管理
      { path: '/category-management', name: 'CategoryManagement', component: CategoryManagement },
      { path: '/article-management', name: 'ArticleManagement', component: ArticleManagement },
      { path: '/product-management', name: 'ProductManagement', component: ProductManagement },
      { path: '/form-data', name: 'FormData', component: FormData },
      { path: '/media-library', name: 'MediaLibrary', component: MediaLibrary },// 案例管理
      { path: '/case-list', name: 'CaseList', component: CaseList },
      
      // AI辅助功能
      { path: '/ai-article', name: 'AiArticle', component: AiArticle },
      { path: '/ai-category', name: 'AiCategory', component: AiCategory },
      { path: '/ai-page', name: 'AiPage', component: AiPage },
      { path: '/ai-image', name: 'AiImage', component: AiImage },
      { path: '/ai-fullsite', name: 'AiFullSite', component: AiFullSite },
      
      // SEO管理
      { path: '/basic-seo', name: 'BasicSeo', component: BasicSeo },
      { path: '/advanced-seo', name: 'AdvancedSeo', component: AdvancedSeo },
      { path: '/keyword-monitor', name: 'KeywordMonitor', component: KeywordMonitor },
      { path: '/seo-analysis', name: 'SeoAnalysis', component: SeoAnalysis },
      { path: '/data-statistics', name: 'DataStatistics', component: DataStatistics },
      
      // 用户与权限
      { path: '/user-management', name: 'UserManagement', component: UserManagement },
      { path: '/role-management', name: 'RoleManagement', component: RoleManagement },
      { path: '/permission-settings', name: 'PermissionSettings', component: PermissionSettings },
      { 
        path: '/admin-dashboard', 
        name: 'AdminDashboard', 
        component: AdminDashboard, 
        meta: { adminOnly: true } 
      },
      
      // 系统设置
      { path: '/system-settings', name: 'SystemSettings', component: SystemSettings },
      
      
    ]
  },
  { path: '/login', name: 'Login', component: () => import('@/views/Login.vue') }
]

export default routes
